package com.example.base.sqllite;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class SerachSQLite extends SQLiteOpenHelper {
  private static final String DB_NAME = "serach.db";
  private static final int VERSION = 1;

  public SerachSQLite(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
    super(context, name, factory, version);
  }

  public SerachSQLite(Context context) {
    super(context, DB_NAME, null, VERSION);
  }

  @Override
  public void onCreate(SQLiteDatabase db) {
    db.execSQL("create table serach(id integer primary key autoincrement, text varchar(200))");
  }

  @Override
  public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

  }

  @Override
  public void onOpen(SQLiteDatabase db) {
    super.onOpen(db);
  }


}
